package com.changhongit.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.changhongit.dao.OrderLogsDao;
import com.changhongit.entity.OrderLogs;
import com.changhongit.service.OrderLogsService;

@Transactional
@Service("orderlogsService")
public class OrderLogsServiceImpl implements OrderLogsService {
	@Autowired
	private OrderLogsDao orderLogsDao;

	public void add(OrderLogs orderLogs) {
		orderLogsDao.add(orderLogs);
	}

	@Override
	public List<OrderLogs> findAllByOrderId(String orderId) {
		return orderLogsDao.findOrderLogsByOrderId(orderId);
	}

}
